<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 1---100的 和
        var sum = 0;
        for(var i = 1;i<=100;i++){
            sum = sum + i;
        }
        console.log(sum);

        // 求 13的 阶乘  13*12*11*10*9*8*7*6*5*4*3*2*1
        var jc = 1;
        for(var i = 1;i<=13;i++){
            jc = jc*i;
        }
        console.log(jc);
    </script>
</body>
</html>